3.401 \(\int \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx\)

Optimal. Leaf size=36 \[ \frac {2 a \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}} \]

[Out]

2*a*sin(d*x+c)/d/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.11, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {4264, 3804} \[ \frac {2 a \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(2*a*Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]])

Rule 3804

Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)], x_Symbol] :> Simp[(-2*a*Co
t[e + f*x])/(f*Sqrt[a + b*Csc[e + f*x]]*Sqrt[d*Csc[e + f*x]]), x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^
2, 0]

Rule 4264

Int[(u_)*((c_.)*sin[(a_.) + (b_.)*(x_)])^(m_.), x_Symbol] :> Dist[(c*Csc[a + b*x])^m*(c*Sin[a + b*x])^m, Int[A
ctivateTrig[u]/(c*Csc[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] &&  !IntegerQ[m] && KnownSecantIntegrandQ[
u, x]

Rubi steps

\begin {align*} \int \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {2 a \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.10, size = 39, normalized size = 1.08 \[ \frac {2 \sqrt {\cos (c+d x)} \tan \left (\frac {1}{2} (c+d x)\right ) \sqrt {a (\sec (c+d x)+1)}}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(2*Sqrt[Cos[c + d*x]]*Sqrt[a*(1 + Sec[c + d*x])]*Tan[(c + d*x)/2])/d

________________________________________________________________________________________

fricas [A]  time = 1.27, size = 49, normalized size = 1.36 \[ \frac {2 \, \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) + d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

2*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c)/(d*cos(d*x + c) + d)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \sec \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(a*sec(d*x + c) + a)*sqrt(cos(d*x + c)), x)

________________________________________________________________________________________

maple [A]  time = 0.96, size = 50, normalized size = 1.39 \[ -\frac {2 \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right )}{d \sin \left (d x +c \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(1/2),x)

[Out]

-2/d*cos(d*x+c)^(1/2)*(a*(1+cos(d*x+c))/cos(d*x+c))^(1/2)*(-1+cos(d*x+c))/sin(d*x+c)

________________________________________________________________________________________

maxima [A]  time = 0.59, size = 20, normalized size = 0.56 \[ \frac {2 \, \sqrt {2} \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

2*sqrt(2)*sqrt(a)*sin(1/2*d*x + 1/2*c)/d

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ \int \sqrt {\cos \left (c+d\,x\right )}\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))^(1/2),x)

[Out]

int(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))^(1/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )} \sqrt {\cos {\left (c + d x \right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**(1/2)*(a+a*sec(d*x+c))**(1/2),x)

[Out]

Integral(sqrt(a*(sec(c + d*x) + 1))*sqrt(cos(c + d*x)), x)

________________________________________________________________________________________